package designer.factory.normalFactory;

import designer.factory.demoInterface.IProgrammer;

/**
 * 工厂方法
 * Created by tanlee on 2016/4/12.
 */
public class ProgrammerStore {

    private IProgrammerFactory programmerFactory;
    private IProgrammer programmer;

    public void getProgrammer(String FactoryType,String ProgrammerType){
        programmerFactory = new ProgrammerFactoryA();
        programmer = programmerFactory.createProgrammer("JAVA");
        System.out.println(programmer.toString());
    }
}
